package com.xhs.main.controller.yfb;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @create 2020-10-26 9:33
 */
@Controller
public class ViewController {
    //发布项目
    @RequiresPermissions("yfb_publish")
    @RequestMapping("/view/publishProject")
    public String publishProject(){
        return "forward:/yfb/publish_project.html";
    }
    //软件开发
    @RequiresPermissions("yfb_software")
    @RequestMapping("/view/softwareDesign")
    public String softwareDesign(){
        return "forward:/yfb/software_design.html";
    }
    //硬件开发
    @RequiresPermissions("yfb_hardware")
    @RequestMapping("/view/hardwareDesign")
    public String hardwareDesign(){
        return "forward:/yfb/hardware_design.html";
    }
    //查看项目
    @RequiresPermissions("yfb_look")
    @RequestMapping("/view/viewProject")
    public String viewProject(){
        return "forward:/yfb/view_project.html";
    }
    //小组成员
    @RequiresPermissions("yfb_group")
    @RequestMapping("/view/group")
    public String group(){
        return "forward:/yfb/group.html";
    }

    @RequestMapping("/view/unauthorized")
    public String unauthorized(){
        System.out.println(111);
        return "forward:/yfb/unauthorized.html";
    }
}
